package cn.mihoyo.basic.mapper;

import cn.mihoyo.basic.query.BasicQuery;

import java.util.List;

public interface BasicMapper<T> {
    void add(T t);

    void delete(Long id);

    void update(T t);

    T findById(Long id);

    List<T> findAll();

    Integer queryCount(BasicQuery query);

    List<T> queryByPage(BasicQuery query);

    void batchDel(List<Long> ids);
}
